import requests

cookies = {
    'deviceid': 'a39454bfbaf8085936dab6e92ac91fe',
    # 'activityTime': '1732031999999',
    # 'Qs_lvt_404253': '1731982981',
    # '_ga': 'GA1.1.1978867868.1731982983',
    'token': '2a8548a9400a5b93f140ed0346a7a49b219a5186ced95ac978abf179deca55fff47ee4a2df42a1556243527b5689ecf6a2f56841ad1170dd5ff921256f9884aae49f2367437b96077624ce30242fddf1',
    # 'Qs_pv_404253': '4078995750531956000%2C2581343150490154000%2C4058425698314561000%2C41990258850898984%2C3708593783220264000',
    # '_uetsid': '33ab3760a61d11ef8a3dbb947da57979',
    # '_uetvid': '33ab3ca0a61d11efb0e2c715baa53077',
    # '_ga_GVCWL6PNZ2': 'GS1.1.1731982983.1.1.1731983417.0.0.0',
}

headers = {
    'Accept': 'application/json, text/plain, */*',
    'Accept-Language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    # 'Cookie': 'deviceid=a39454bfbaf8085936dab6e92ac91fe; activityTime=1732031999999; Qs_lvt_404253=1731982981; _ga=GA1.1.1978867868.1731982983; token=2a8548a9400a5b93f140ed0346a7a49b219a5186ced95ac978abf179deca55fff47ee4a2df42a1556243527b5689ecf6a2f56841ad1170dd5ff921256f9884aae49f2367437b96077624ce30242fddf1; Qs_pv_404253=4078995750531956000%2C2581343150490154000%2C4058425698314561000%2C41990258850898984%2C3708593783220264000; _uetsid=33ab3760a61d11ef8a3dbb947da57979; _uetvid=33ab3ca0a61d11efb0e2c715baa53077; _ga_GVCWL6PNZ2=GS1.1.1731982983.1.1.1731983417.0.0.0',
    'Origin': 'https://app.diandian.com',
    'Referer': 'https://app.diandian.com/',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-site',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
    'language': 'zh',
    'sec-ch-ua': '"Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
}

params = {
    'market_id': '1',
    'genre_id': '173',
    'country_id': '75',
    'device_id': '1',
    'page': '2',
    'time': '1731981613',
    'rank_type': '1',
    'brand_id': '3',
    'k': 'BlVUAkEGFkBAVQZdXQFCAxdCQFMfQkMaQQESR0ZWAVJRClgXA1gTAh9CQxpfRxReBQdZDw==',
}

response = requests.get('https://api.diandian.com/pc/app/v1/rank', params=params, cookies=cookies, headers=headers)

print(response.json())